package com.example.gestioncontacts;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.util.Log;
import android.view.Menu;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.LinearLayout;
import android.widget.TextView;

public class MainActivity extends Activity {

	public static final String TAG = "Gestion des Contacts";
	private Button b1;
	private Button b2;
	private Button b3;


	protected void onCreate(Bundle savedInstanceState) {
		Log.v(TAG, "Activity State: onCreate()");
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_main);

		b1 = (Button) findViewById(R.id.b1);
		b2 = (Button) findViewById(R.id.b2);
		b3 = (Button) findViewById(R.id.b3);
		

		b2.setOnClickListener(new OnClickListener() {
			public void onClick(View v) {
				Intent i = new Intent(MainActivity.this, AjoutContact.class);
				startActivity(i);

			}
		});

		b1.setOnClickListener(new OnClickListener() {
			public void onClick(View v) {

				Intent i = new Intent(MainActivity.this, AfficheContacts.class);
				startActivity(i);
			}
		});

	}

	public boolean onCreateOptionsMenu(Menu menu) {

		return true;
	}
}
